package cn.com.nes.common.em;

public enum DateEnum {

    _0(0,"秒",1000),
    _1(1,"分钟",1000*60),
    _2(2,"小时",1000*60*60),
    _3(3,"日",1000*60*60*24),
    _4(4,"周",1000*60*60*24*7),
    _5(5,"月",1000*60*60*24*30),
    _6(5,"年",1000*60*60*24*365);

    private int key;
    private  String val;
    private long convert;

    DateEnum(int key, String val, long convert){
        this.key = key;
        this.val = val;
        this.convert = convert;
    }

    public String getVal() {
        return val;
    }

    public int getKey(){
        return key;
    }

    public long getConvert() {
        return convert;
    }
}
